package cn.xzhang.boot.model.dto.wallpaperCategories;

import cn.xzhang.boot.common.pojo.PageParam;
import io.swagger.v3.oas.annotations.media.Schema;
import lombok.Data;
import lombok.EqualsAndHashCode;


import javax.validation.constraints.NotEmpty;
import javax.validation.constraints.NotNull;
import java.io.Serializable;

/**
 * 壁纸分类分页请求
 *
 * @author <a href="https://github.com/XiaoZhangCode">XiaoZhangCode</a>
 */
@Data
@Schema(description = "壁纸分类分页请求")
@EqualsAndHashCode(callSuper = true)
public class WallpaperCategoriesPageReqDTO extends PageParam implements Serializable {

    @Schema(description = "id")
    private Long id;

    @NotEmpty(message = "分类名称不能为空")
    @Schema(description = "分类名称")
    private String name;

    @Schema(description = "排序字段")
    private Integer sort;

    @NotNull(message = "是否为推荐分类(0否1是)不能为空")
    @Schema(description = "是否为推荐分类(0否1是)", requiredMode = Schema.RequiredMode.REQUIRED)
    private Byte selected;

    @NotNull(message = "是否启用(0否1是)不能为空")
    @Schema(description = "是否启用(0否1是)", requiredMode = Schema.RequiredMode.REQUIRED)
    private Byte enabled;


}
